<template>
	<view class="contact">
		<view class="img">
			<image src="../../static/background.jpg" ></image>
		</view>
		<view @click="phone">
			联系电话：13138796905（点击拨打）
		</view>
		<view class="address">
			<text>校区地址：惠州城市职业学院</text>
		</view>
		<view class="map">
			<!-- 经度 维度 -->
			<map :longitude="longitude" :scale="scale" :latitude="latitude" :markers="markers"></map>
		</view>
		
	</view>
</template>

<script>
	export default{
		data(){
			return{
				longitude:114.43774,
				latitude:23.015762,
				scale:13,
				markers:[
					{
					longitude:114.43774,
					latitude:23.015762,
						iconPath:"../../static/logo.png",
						width:20,
						height:20
					}
				]
			}
		}
		,
		methods:{
			phone(){
				uni.makePhoneCall({
					phoneNumber:'13138796905',
					
				})
			}
		}
	}
</script>

<style lang="scss">
	.img {
		image{
			width: 750rpx;
			height: 350rpx;
		}
	}
	.map{
		map{
			width: 750rpx;
			height: 750rpx;
		}
	}
</style>
